/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gw2lol;

/**
 *
 * @author Alex
 */
public class DataSet {

    private String type;
    private String val;

    public String getType() {
        return type;
    }

    public String getVal() {
        return val;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public DataSet(String type, String val) {
  
        if (val.endsWith(","))
        {
            val = val.substring(0, val.length()-2);
        }
        
        type = type.replaceAll("\\{", "");
            type = type.replaceAll("\\}", "");
            type = type.replaceAll("\\[", "");
            type = type.replaceAll("\\]", "");
            type = type.replaceAll("\"", "");
            
            val = val.replaceAll("\\{", "");
            val = val.replaceAll("\\}", "");
            val = val.replaceAll("\\[", "");
            val = val.replaceAll("\\]", "");            
            val = val.replaceAll("\"", "");
        this.type = type;
        this.val = val;
        

        System.out.println(val);
    }
    
    public String getVals()
    {
        return ("|" + type + " >-< " + val);
    
    }
}
